home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / sun3.md / sys / exec.h < prev    next >
C/C++ Source or Header  |  1991-05-20  |  1KB  |  51 lines

  1. /*
  2.  * Copyright (c) 1982, 1986 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)exec.h    7.1 (Berkeley) 6/4/86
  7.  */
  8.  
  9. #ifndef _EXEC
  10. #define _EXEC
  11.  
  12. /*
  13.  * Header prepended to each a.out file.
  14.  */
  15. struct exec {
  16.     unsigned int    a_dynamic    :1;
  17.     unsigned int    a_toolversion    :7;
  18.     unsigned char    a_machtype;    /* machine type */
  19.     unsigned short    a_magic;    /* magic number */
  20.     unsigned long    a_text;        /* size of text segment */
  21.     unsigned long    a_data;        /* size of initialized data */
  22.     unsigned long    a_bss;        /* size of uninitialized data */
  23.     unsigned long    a_syms;        /* size of symbol table */
  24.     unsigned long    a_entry;    /* entry point */
  25.     unsigned long    a_trsize;    /* size of text relocation */
  26.     unsigned long    a_drsize;    /* size of data relocation */
  27. };
  28.  
  29. /*
  30.  * Magic numbers currently defined:
  31.  */
  32.  
  33. #define    OMAGIC    0407        /* old impure format */
  34. #define    NMAGIC    0410        /* read-only text */
  35. #define    ZMAGIC    0413        /* demand load format */
  36.  
  37. #define    SPRITE_ZMAGIC    0414        /* Uses Sprite pmegs */
  38. #define    UNIX_ZMAGIC    0415        /* Unix binary compatible */
  39.  
  40. /*
  41.  * Machine types currently defined.  Warning:  if you add new machine
  42.  * types or change old ones, be sure to update the information in the
  43.  * library file a.out.c.
  44.  */
  45.  
  46. #define M_68010        1
  47. #define M_68020        2
  48. #define M_SPARC         3
  49.  
  50. #endif /* _EXEC */
  51.